import 'package:high_help_apps/common/entities/misc/email/auth_email_request_entity.dart';

authEmailRequestEntityFromJson(AuthEmailRequestEntity data, Map<String, dynamic> json) {
	if (json['token'] != null) {
		data.token = json['token'].toString();
	}
	if (json['uid'] != null) {
		data.uid = json['uid'] is String
				? int.tryParse(json['uid'])
				: json['uid'].toInt();
	}
	if (json['code'] != null) {
		data.code = json['code'].toString();
	}
	return data;
}

Map<String, dynamic> authEmailRequestEntityToJson(AuthEmailRequestEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['token'] = entity.token;
	data['uid'] = entity.uid;
	data['code'] = entity.code;
	return data;
}